﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RemoteMessage
{
	public partial class MessageForm : Form
	{
		private MessageSlave _slave;

		public MessageForm(MessageSlave slave)
		{
			InitializeComponent();
			_slave = slave;
		}

		private void MessageButton_Click(object sender, EventArgs e)
		{
			_slave.ShowMessage(MsgBox.Text);
		}
	}
}